<?php include('_init_.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="../css/admin-body.css" rel="stylesheet" type="text/css" />
<link href="../css/admin-working.css" rel="stylesheet" type="text/css" />
<title>班尼頓寫真後台管理</title>
</head>

<body>
<?php include_once('admin-top.php');?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']?>" name="page_form"> 
<input type="hidden" name="act" value="save"/>
<div id="main" class="clearfix"><!-- star #main //-->
  <?php include_once('sub-news.php');?>
  <div id="contactall"><!-- star #main //-->
  <div id="tit" ><!-- star #tit //-->
    <ul>
    <li class="tit-a">頁面資訊管理</li>
    <li class="tit-b"><a href="#" onclick="document.forms['page_form'].submit();return false;">儲存</a></li>
    </ul>
  </div><!-- end #tit //-->
    <div id="ForMate" class="clearfix" ><!-- star #ForMate //-->
    
    <?php foreach($GLOBALS['GV_ARTICLE_SUB_CAT'][$GLOBALS['BIG_CAT_ID']] as $cat_id=>$cat_name):?>
      <ul>
  <li class="tit-1"><?php echo $cat_name;?></li>
    <li class="fm-1">關鍵字管理（可以選擇五組關鍵字）</li>
    <li class="fm-2">
    <?php foreach($GLOBALS['META_KEY_WORDS']  as $id=>$name):?>
    <p><input  type="checkbox" <?php if(in_array($id, $GLOBALS['PAGE_FORM_DATA'][$cat_id]['meta_keyword'])):?>checked="checked"<?php endif;?> value="<?php echo $id;?>" class="checkbox" name="meta_keyword_<?php echo $cat_id?>[]"/>&nbsp;&nbsp;<?php echo $name;?></p>
    <?php endforeach;?>
    </li>
    <li class="fm-1">描述內容（最多70個中文字元或是140個英文字元）</li>
    <li class="fm-3">
      <textarea name="meta_description_<?php echo $cat_id?>" class="fm-3a"><?php echo $GLOBALS['PAGE_FORM_DATA'][$cat_id]['meta_description'];?></textarea>
    </li>
    </ul>
    <?php endforeach;?>
 
  
  </div><!-- end #ForMate //-->
  </div><!-- end #contactall //-->
</div><!-- end #main //-->
</form>
</body>
</html>